<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<%@taglib prefix="ty" uri="/wyzzTags"%>
<html>
<head>
	<!-- css修饰信息 -->
	<link href="<s:url value="/resource/css/style.css"/>" rel="stylesheet" type="text/css" />	 	 
	<jsp:include flush="true" page="/sitemesh/jsPackage.jsp"></jsp:include>			 		  
	<!-- 自己添加 -->
	<script type="text/javascript" src="../resource/js/hrm/examin.js"></script>
	<title>我的加班单添加</title>
</head>
<body onload="hrm.examin.initOvernight();">    	 
	<s:component template="bodyhead">
	</s:component>
	<br/>
		
<form id="empORAdd" name="empORAdd" action="empOTAddDo.action" method="POST">
   	<!-- 隐藏字段 -->
	<s:token />
	<s:hidden id="infoMeg" name="infoMeg" value="" />
	<table width="100%">
		<tr>
			<td width="3%" align="right">
				<img src="../resource/images/h3Arrow.gif">
			</td>
			<td>
				<h3>新增加班</h3>
			</td>
		</tr>
	</table>
	
	<table width="100%" align="left">
	    <tr>
	    	<td width="13%" align="right">
				<label >员工姓名<span class="required">*</span>:</label>
			</td>
			<td>
		        <s:hidden name="of_Bean.orEmpNo.id" id="empId"></s:hidden>
		        <s:hidden name="of_Bean.orEmpNo.empLocationNo.id" id="empLocationNo.id"></s:hidden>
		        <s:textfield id="empName"  name="of_Bean.orEmpNo.empName" required="true" readonly="true"/>	
		        <s:set name="author" value="@com.wyzz.hr.util.DatabaseSysConfigManager@getInstance()"/>
		        <s:if test="#request.author.getProperty('sys.examin.create.level')==1">
		        <ty:auth auths="401 or 411,2 or 411,3"><img src="../resource/images/search_icon.gif" alt="点击图标选择员工" title="点击图标选择员工" class="urlimg" onclick="showChooseEmpDiv(4,1,'','empName','empId');"/></ty:auth>	        
	        	</s:if>
	        </td>
	    </tr>
		<tr>		
		<td align="right">
			加班种类<span class="required">*</span>:
		</td>
		<td>			
			<s:select id="of_Bean.orOtNo.otNo" name="of_Bean.orOtNo.otNo" list="of_Bean.allOtType" listKey="otNo" listValue="otName" emptyOption="false" required="true" />					
		</td>
		</tr>
		<tr>
			<td align="right">
			    考勤日期<span class="required">*</span>:
			</td>
			<td>			 
				<s:textfield  id="of_Bean.orShiftDate" name="of_Bean.orShiftDate" required="true" size="10" maxlength="10"/>
				<img onclick="WdatePicker({el:'of_Bean.orShiftDate'})" class="dateimg" src="../resource/js/My97DatePicker/skin/datePicker.gif">
				<s:hidden id="of_Bean.orOvernight" name="of_Bean.orOvernight"/>
				<input id="orOvernight" type="checkbox" class="checkbox" <s:if test="of_Bean.orOvernight==1">checked</s:if> onclick="hrm.examin.changeOvernight(this.checked);" />
				    是否隔夜
			</td>
		</tr>
		<tr>
			<td align="right">
				<label >开始时间<span class="required">*</span>:</label>
			</td>
			<td>
				<s:select id="startTime" name="of_Bean.startTime" list="#{0:'0点',1:'1点',2:'2点',3:'3点',4:'4点',5:'5点',6:'6点',7:'7点',8:'8点',9:'9点',10:'10点',11:'11点',12:'12点',13:'13点',14:'14点',15:'15点',16:'16点',17:'17点',18:'18点',19:'19点',20:'20点',21:'21点',22:'22点',23:'23点'}" emptyOption="false" required="true"  />
				<s:select name="of_Bean.startTimeMinute" list="#{'0':'整','30':'半'}" />
				<s:hidden id="of_Bean.startOvernight" name="of_Bean.startOvernight"/>
				<span id="startTimeSpan" style="display:none">
				    <input type="checkbox" id="startOvernight" class="checkbox" <s:if test="of_Bean.startOvernight==1">checked</s:if> />
			                     隔夜  
				</span>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label >结束时间<span class="required">*</span>:</label>
			</td>
			<td>
				<s:select id="endTime" name="of_Bean.endTime" list="#{0:'0点',1:'1点',2:'2点',3:'3点',4:'4点',5:'5点',6:'6点',7:'7点',8:'8点',9:'9点',10:'10点',11:'11点',12:'12点',13:'13点',14:'14点',15:'15点',16:'16点',17:'17点',18:'18点',19:'19点',20:'20点',21:'21点',22:'22点',23:'23点',24:'24点'}" emptyOption="false" required="true"  />
				<s:select name="of_Bean.endTimeMinute" list="#{'0':'整','30':'半'}"	/>
				<s:hidden id="of_Bean.endOvernight" name="of_Bean.endOvernight"/>
			    <span id="endTimeSpan" style="display:none">
			        <input type="checkbox" id="endOvernight" class="checkbox" disabled="disabled" checked="checked"/>
			                     隔夜
			    </span>
			</td>
		</tr>
		<tr>					
			<td align="right">
				加班理由<span class="required">*</span>:
			</td>
			<td>
				<s:textarea name="of_Bean.orReason"  cols="40" rows="6" required="true" onkeyup="if(this.value.length>255){this.value=this.value.substring(0, 255);}"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td height="1" colspan="9">						
				<input title="[Alt+S]" accesskey="S" id="submited" name="submited" class="button" type="button" onclick="hrm.examin.submitOrRequest('empORAdd');" value="提交">	
				<input title="[Alt+A]" accesskey="A" id="reset" name="reset" class="button" type="reset" value="重置" >
			</td>
		</tr>
	</table>
</form>
<script language="javascript">
model.simple.setParentIFrameFull("IFrame1"); 
</script>
<%@ include file="../profile/search_emp_div.jsp"%>
</body>
</html>
